package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dto.CollectiveSalesVO;
import com.sc.nft.entity.CollectiveOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.CollectiveTradingTrendVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 集售订单表(sc_collective_order)数据Mapper
 *
 * @author zxy
 * @since 2024-09-18 01:01:58
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface CollectiveOrderMapper extends BaseMapper<CollectiveOrder> {

    Page<CollectiveOrder> getOrderPage(Page page, @Param("userId") Long userId, @Param("orderType") Integer orderType, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Page<CollectiveTradingTrendVO> tradingTrend(Page page, @Param("collectionId") Long id);
}
